package com.hsnn.medstgmini.pro.plan.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;


/**
 *@category 调价计划明细实体类
 * @author 韩守松
 * @date 2015年6月17日
 */
@Entity
@Table(name = "base_priceadjplandetail")
public class BasePriceadjplandetail implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 7816736881768188896L;
	private String priceAdjPalnDetailId;//几乎明细id
	private String priceAdjPlanId;//调价计划id
	private String goodsCode;//商品号
	private Double origProPriceLimit;//原采购限价
	private Double currProPriceLimit;//新采购限价
	private Double origRetailPriceLimit;//原最高零售价
	private Double currRetailPriceLlimit;//新最高零售价
	private Timestamp addDatetime;//加入计划时间
	private String addUser;//加入计划操作人

	// Constructors

	
	private long count;//查询结果总数
	

	/** default constructor */
	public BasePriceadjplandetail() {
	}


	/** minimal constructor */
	public BasePriceadjplandetail(String priceAdjPalnDetailId) {
		this.priceAdjPalnDetailId = priceAdjPalnDetailId;
	}

	/** full constructor */
	public BasePriceadjplandetail(String priceAdjPalnDetailId,
			String priceAdjPlanId, String goodsCode, Double origProPriceLimit,
			Double currProPriceLimit, Double origRetailPriceLimit,
			Double currRetailPriceLlimit, Timestamp addDatetime, String addUser) {
		this.priceAdjPalnDetailId = priceAdjPalnDetailId;
		this.priceAdjPlanId = priceAdjPlanId;
		this.goodsCode = goodsCode;
		this.origProPriceLimit = origProPriceLimit;
		this.currProPriceLimit = currProPriceLimit;
		this.origRetailPriceLimit = origRetailPriceLimit;
		this.currRetailPriceLlimit = currRetailPriceLlimit;
		this.addDatetime = addDatetime;
		this.addUser = addUser;
	}

	// Property accessors
	@Id
    @GeneratedValue(generator="BasePriceadjplandetailgenerator")
    @GenericGenerator(name="BasePriceadjplandetailgenerator", strategy="uuid")
	@Column(name = "price_adj_paln_detail_id", unique = true, nullable = false, length = 36)
	public String getPriceAdjPalnDetailId() {
		return this.priceAdjPalnDetailId;
	}

	public void setPriceAdjPalnDetailId(String priceAdjPalnDetailId) {
		this.priceAdjPalnDetailId = priceAdjPalnDetailId;
	}

	@Column(name = "price_adj_plan_id", length = 36)
	public String getPriceAdjPlanId() {
		return this.priceAdjPlanId;
	}

	public void setPriceAdjPlanId(String priceAdjPlanId) {
		this.priceAdjPlanId = priceAdjPlanId;
	}

	@Column(name = "goods_code",insertable=false,updatable=false, length = 36)
	public String getGoodsCode() {
		return this.goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	@Column(name = "orig_pro_price_limit", precision = 18, scale = 3)
	public Double getOrigProPriceLimit() {
		return this.origProPriceLimit;
	}

	public void setOrigProPriceLimit(Double origProPriceLimit) {
		this.origProPriceLimit = origProPriceLimit;
	}

	@Column(name = "curr_pro_price_limit", precision = 18, scale = 3)
	public Double getCurrProPriceLimit() {
		return this.currProPriceLimit;
	}

	public void setCurrProPriceLimit(Double currProPriceLimit) {
		this.currProPriceLimit = currProPriceLimit;
	}

	@Column(name = "orig_retail_price_limit", precision = 18, scale = 3)
	public Double getOrigRetailPriceLimit() {
		return this.origRetailPriceLimit;
	}

	public void setOrigRetailPriceLimit(Double origRetailPriceLimit) {
		this.origRetailPriceLimit = origRetailPriceLimit;
	}

	@Column(name = "curr_retail_price_llimit", precision = 18, scale = 3)
	public Double getCurrRetailPriceLlimit() {
		return this.currRetailPriceLlimit;
	}

	public void setCurrRetailPriceLlimit(Double currRetailPriceLlimit) {
		this.currRetailPriceLlimit = currRetailPriceLlimit;
	}

	@Column(name = "add_datetime", length = 19)
	public Timestamp getAddDatetime() {
		return this.addDatetime;
	}

	public void setAddDatetime(Timestamp addDatetime) {
		this.addDatetime = addDatetime;
	}

	@Column(name = "add_user", length = 36)
	public String getAddUser() {
		return this.addUser;
	}

	public void setAddUser(String addUser) {
		this.addUser = addUser;
	}

	  @Transient
	    public long getCount() {
			return count;
		}


		public void setCount(long count) {
			this.count = count;
		}
}